package com.gamefx.engine1.vo
{
	import com.gamefx.binding.IBinding;
	import com.gamefx.binding.BindingProxy;

	public class VBase implements IBinding
	{

		private var _proxy:BindingProxy;
		
		public function VBase(data:Object = null)
		{
			if (data != null)
			{
				for (var key:String in data)
				{
					try
					{
						if (this.hasOwnProperty(key))
						{
							this[key] = data[key];
						}
					}
					catch (e:*)
					{
					}
				}
			}
			
			_proxy = new BindingProxy(this);
		}
		
		public function get proxy():BindingProxy
		{
			return _proxy;
		}

	}
}
